package com.sunwayworld.basemodule.basedata.purchase.service;

import com.sunwayworld.basemodule.basedata.purchase.bean.LimsPurchaseBean;
import com.sunwayworld.framework.support.auditable.service.GenericAuditableService;
import com.sunwayworld.framework.support.base.service.GenericService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.basemodule.basedata.purchase.bean.LimsPurchaseMaterialBean;

public interface LimsPurchaseService extends GenericService<LimsPurchaseBean, Long>, GenericAuditableService<LimsPurchaseBean, Long> {

    Page<LimsPurchaseMaterialBean> selectMaterialPaginationByPurchaseId(Long id, RestJsonWrapperBean wrapper);

    Long insertMaterial(Long id, RestJsonWrapperBean wrapper);

    void deleteMaterial(Long id, RestJsonWrapperBean wrapper);

    String checkMaterials(RestJsonWrapperBean wrapper);
}
